<template>
	<view class="container">
		<view class="main">
			<view class="nav">
				<view class="header">
					<view class="left">
						<view class="store-name">
							<text>{{ shopsVo.name||''}}</text>
							<view class="float_right" v-if="shopsVo.telephone" :data-phone="shopsVo.telephone"
								@tap="openCall">
                <tui-icon name="voipphone" :data-phone="shopsVo.telephone" :size="22">
                </tui-icon>
							</view>
						</view>
						<view class="coupon">
							<text class="title">营业时间 {{shopsVo.workTime||''}}</text>
						</view>
						<view class="store-location" :data-longitude="shopsVo.longitude"
							:data-latitude="shopsVo.latitude" :data-name="shopsVo.name" :data-address="shopsVo.details"
							@tap="goHere">
							<image src='/static/images/mall/icon_address.png' style="width: 30rpx; height: 30rpx;"
								class="mr-10"></image>
							<text>{{shopsVo.details||''}} (距离您 {{ distant }} 公里)</text>
						</view>
					</view>
<!--					<view class="right">-->
<!--						<view class="takeout active">-->
<!--							<text>自取</text>-->
<!--						</view>-->
<!--					</view>-->
				</view>
			</view>
			<view class="content" v-if="goods.length">
				<scroll-view class="menus" :scroll-into-view="menuScrollIntoView" scroll-with-animation scroll-y>
					<view class="wrapper">
						<view class="menu" :id="`menu-${item.id}`" :class="{'current': item.id === currentCateId}"
							v-for="(item, index) in goods" :key="index" @tap="handleMenuTap(item.id)">
							<text>{{ item.name }}</text>
							<view class="dot" v-show="menuCartNum(item.id)">{{ menuCartNum(item.id) }}</view>
						</view>
					</view>
				</scroll-view>
				<!-- goods list begin -->
				<scroll-view class="goods" scroll-with-animation scroll-y :scroll-top="cateScrollTop"
					@scroll="handleGoodsScroll">
					<view class="wrapper">
						<swiper class="ads" id="ads" autoplay :interval="3000" indicator-dots>
							<swiper-item>
								<image :src="shopsVo.imgUrl"></image>
							</swiper-item>
						</swiper>
						<view class="list">
							<!-- category begin -->
							<view class="category" v-for="(item, index) in goods" :key="index" :id="`cate-${item.id}`">
								<view class="title">
									<text>{{ item.name }}</text>
									<image :src="item.icon" class="icon"></image>
								</view>
								<view class="items">
									<!-- 商品 begin -->
									<view class="good" v-for="(good, key) in item.shopsGoodsList" :key="key" @tap="handleAddToCart(item, good, 1)">
										<image :src="good.listPicUrl" class="image"></image>
										<view class="right">
											<text class="name">{{ good.name }}</text>
											<text class="tips">{{ good.goodsBrief }}</text>
											<view class="price_and_action">
												<text class="price">￥{{ good.retailPrice }}</text>
												<view class="btn-group">
												</view>
											</view>
										</view>
									</view>
									<!-- 商品 end -->
								</view>
							</view>
							<!-- category end -->
						</view>
					</view>
				</scroll-view>
				<!-- goods list end -->
			</view>
			<tui-show-empty text="暂无商品" v-else></tui-show-empty>
		</view>
		<!-- content end -->
		<!-- 购物车栏 begin -->
		<view class="cart-box" v-if="footCart.cartTotal.goodsCount > 0">
			<view class="mark">
        <image src="/static/images/tabbar/ic_menu_shoping_nor.png" class="cart-img" @tap="openCartPage"></image>
				<view class="tag">{{ footCart.cartTotal.goodsCount }}</view>
			</view>
			<view class="price">￥{{ footCart.cartTotal.checkedGoodsAmount }}</view>
			<button type="warn" class="pay-btn" @tap="openCartPage">
				去结算
			</button>
		</view>
		<!-- 购物车栏 end -->
	</view>
</template>

<script>
	const util = require("@/utils/util.js")
	export default {
		data() {
			return {
				goods: [], //所有商品
				currentCateId: '', //默认分类
				cateScrollTop: 0,
				menuScrollIntoView: '',
				cart: [], //购物车
				good: {}, //当前饮品
				sizeCalcState: false,
				goodsList: [],
				shopsSn: '',
				shopsId: '',
				shopsVo: {},
				footCart: {
					cartTotal: {}
				},
				distant: ''
			}
		},
		computed: {
			goodCartNum() { //计算单个饮品添加到购物车的数量
				return (id) => this.cart.reduce((acc, cur) => {
					if (cur.goodsId === id) {
						return acc += cur.number
					}
					return acc
				}, 0)
			},
			menuCartNum() {
				return (id) => this.cart.reduce((acc, cur) => {
					if (cur.shopsCategoryId === id) {
						return acc += cur.number
					}
					return acc
				}, 0)
			}
		},
		methods: {
			handleMenuTap(id) { //点击菜单项事件
				if (!this.sizeCalcState) {
					this.calcSize()
				}

				this.currentCateId = id
				this.$nextTick(() => this.cateScrollTop = this.goods.find(item => item.id == id).top)
			},
			handleGoodsScroll({
				detail
			}) { //商品列表滚动事件
				if (!this.sizeCalcState) {
					this.calcSize()
				}
				const {
					scrollTop
				} = detail
				let tabs = this.goods.filter(item => item.top <= scrollTop).reverse()
				if (tabs.length > 0) {
					this.currentCateId = tabs[0].id
				}
			},
			handleReduceFromCart(item, good) {
				let that = this;
				const index = this.cart.findIndex(item => item.goodsId === good.goodsId)
				this.cart[index].number -= 1
				if (this.cart[index].number <= 0) {
					this.cart.splice(index, 1)
				}
				util.request('cart/minus', {
					goodsId: good.goodsId,
					number: 1,
					shopsId: that.shopsVo.id,
				}, 'POST').then(function(res) {
					if (res.code === 0 && null != res.data) {
						var goodsList = that.goodsList;
						goodsList.forEach(function(val, index, arr) {
							if (val.goodsId == good.goodsId) {
								val.cartNum = res.data;
								goodsList[index] = val;
							}
						}, that);
						that.goodsList = goodsList
						that.getMycart();
					}
				});
			},
			handleAddToCart(cate, good, num) { //添加到购物车
				let that = this;
				uni.navigateTo({
					url: '/pages/goods/goods?id=' + good.id,
				})
			},
			calcSize() {
				let h = 10
				let view = uni.createSelectorQuery().select('#ads')
				view.fields({
					size: true
				}, data => {
					h += Math.floor(data.height)
				}).exec()

				this.goods.forEach(item => {
					let view = uni.createSelectorQuery().select(`#cate-${item.id}`)
					view.fields({
						size: true
					}, data => {
						item.top = h
						h += data.height
						item.bottom = h
					}).exec()
				})
				this.sizeCalcState = true
			},
			getShopsDetail: function() {
				let that = this;
				util.request('shops/detailById', {
					//shopsSn: that.shopsSn,
					shopsId: that.shopsId
				}).then(function(res) {
					if (res.code === 0) {
						that.shopsVo = res.data
						that.getMycart();
						util.request('shops/shopsCategory', {
							shopsId: that.shopsVo.id
						}).then(function(res) {
							if (res.code === 0) {
								that.goods = res.data
								if (res.data.length > 0) {
									//默认激活第一条
									that.currentCateId = res.data[0].id
								}else {
									//如果店铺没有设置分类则显示商城分类
									util.request('shops/goodsCategory', {
										shopsId: that.shopsVo.id
									}).then(function(res) {
										if (res.code === 0) {
											that.goods = res.data
											if (res.data.length > 0) {
												//默认激活第一条
												that.currentCateId = res.data[0].id
											}else {
												//////////////////////////////////////
												console.log("7777777777777777777777777")
												
											}
										} else {
											//显示错误信息
											util.toast(res.data.errmsg);
										}
									});
								}
							} else {
								//显示错误信息
								util.toast(res.data.errmsg);
							}
						});
            // #ifdef MP-WEIXIN
            uni.getFuzzyLocation({
              type: 'gcj02',
              success(data) {
                let shopsVo = res.data;
                that.distant = util.getDistance(data.latitude, data.longitude,
                    shopsVo.latitude, shopsVo.longitude)
                that.shopsVo = shopsVo
              },
              fail(rs){
                console.log(rs)
              }
            })
            // #endif
            // #ifndef MP-WEIXIN
            uni.getLocation({
              type: 'gcj02',
              success(data) {
                let shopsVo = res.data;
                that.distant = util.getDistance(data.latitude, data.longitude,
                    shopsVo.latitude, shopsVo.longitude)
                that.shopsVo = shopsVo
              },
              complete() {},
              fail(rs) {
                console.log(rs);
              }
            });
            // #endif
					} else {
						//显示错误信息
						util.toast(res.errmsg);
					}
				});
			},
			goHere: function(e) {
				uni.openLocation({
					name: e.currentTarget.dataset.name,
					address: e.currentTarget.dataset.address,
					latitude: parseFloat(e.currentTarget.dataset.latitude),
					longitude: parseFloat(e.currentTarget.dataset.longitude)
				})
			},
			getMycart: function() {
				let that = this;
				if (that.shopsVo && that.shopsVo.id) {
					util.request('cart/myCart', {
						shopsId: that.shopsVo.id
					}).then(function(resp) {
						if (resp.code === 0) {
							that.footCart = resp
							that.cart = resp.cartList
						}
					});
				}
			},
			openCartPage: function() {
				let that = this;
				uni.switchTab({
					url: '/pages/cart/cart',
				})
			},
			openCall: function(e) {
				uni.makePhoneCall({
					phoneNumber: e.target.dataset.phone
				})
			}
		},
		onShow: function() {
			// 页面显示
			this.getShopsDetail();
		},
		onLoad: function(options) {
			uni.setStorageSync("navUrl", "/pages/shops/shops?shopsSn=" + options.shopsSn +"&shopsId="+options.shopsId);
			// 页面初始化 options为页面跳转所带来的参数
			var that = this;
			if (options.shopsSn) {
				that.shopsSn = options.shopsSn;
			}
			if(options.shopsId) {
				that.shopsId = options.shopsId;
			}
		},
		onShareAppMessage: function() {
			var that = this;
			return {
				title: that.shopsVo.name,
				desc: that.shopsVo.details,
				path: '/pages/shops/shops?shopsSn=' + that.shopsSn +"&shopsId="+options.shopsId
			}
		},
		// 下拉刷新
		onPullDownRefresh: function() {
			// 显示顶部刷新图标
			uni.showNavigationBarLoading();
			this.getShopsDetail();
			// 隐藏导航栏加载框
			uni.hideNavigationBarLoading();
			// 停止下拉动作
			uni.stopPullDownRefresh();
		}
	}
</script>
<style lang="scss">
/* #ifdef H5 */
page {
  min-height: 100%;
}
/* #endif */

.tui-icon{
  font-size: 30rpx;
}

.container {
  overflow: hidden;
  position: relative;
  height: 100%;
}

.loading {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  image {
    width: 260rpx;
    height: 260rpx;
    position: relative;
    margin-top: -200rpx;
    /* #ifdef h5 */
    margin-top: 0;
    /* #endif */
  }
}

.stores {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: -40rpx;
  .store {
    width: 100%;
    background-color: $bg-color-grey;
    padding: 20rpx;
    display: flex;
    align-items: center;
    margin-bottom: 20rpx;
    border-radius: 6rpx;

    .iconfont {
      font-size: 50rpx;
      margin-right: 15rpx;

      &.iconradio-button-off {
        color: $text-color-assist;
      }

      &.iconradio-button-on {
        color: $color-default;
      }
    }

    .infos {
      flex: 1;
      display: flex;
      flex-direction: column;
      color: $text-color-base;
      overflow: hidden;

      .name_and_distance {
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-bottom: 10rpx;
        overflow: hidden;

        .name {
          flex: 1;
          flex-shrink: 0;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          font-size: $font-size-lg;
        }

        .distance {
          flex-shrink: 0;
          font-size: $font-size-lg;
          font-weight: bold;
          margin-left: 20rpx;
        }
      }

      .street {
        color: $text-color-assist;
        font-size: $font-size-sm;
      }
    }
  }
}

.main {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.nav {
  width: 100%;
  height: 222rpx;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;

  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20rpx;
    background-color: #ffffff;

    .left {
      flex: 1;
      display: flex;
      flex-direction: column;

      .store-name {
        justify-content: flex-start;
        align-items: center;
        font-size: $font-size-lg;
        margin-bottom: 10rpx;

        .iconfont {
          margin-left: 10rpx;
          line-height: 100%;
        }

        .float_right {
          float: right;
          font-size: 22rpx;
        }
      }

      .store-location {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        color: $text-color-assist;
        font-size: 22rpx;

        .iconfont {
          vertical-align: middle;
          display: table-cell;
          color: $color-default;
          line-height: 100%;
        }
      }
    }

    .right {
      border-radius: 38rpx;
      display: flex;
      align-items: center;
      font-size: $font-size-sm;
      padding: 0 30rpx 0 0;
      color: $text-color-assist;

      .dinein, .takeout {
        position: relative;
        display: flex;
        align-items: center;
        &.active {
          padding: 14rpx 38rpx;
          color: #ffffff;
          background-color: $color-default;
          border-radius: 38rpx;
        }
      }

      .takeout {
        margin-left: 20rpx;
        height: 100%;
        flex: 1;
        padding: 14rpx 0;
      }

      .dinein.active {
        margin-left: -38rpx;
      }

      .takeout.active {
        margin-right: -38rpx;
      }
    }
  }

  .coupon {
    flex: 1;
    width: 100%;
    font-size: $font-size-base;
    color: $color-warning;
    padding: 20rpx 0;
    display: flex;
    align-items: center;
    overflow: hidden;

    .title {
      flex: 1;
      margin-left: 10rpx;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    .iconfont {
      line-height: 100%;
    }
  }
}

.content {
  flex: 1;
  overflow: hidden;
  width: 100%;
  display: flex;

  .menus {
    width: 200rpx;
    height: 100%;
    overflow: hidden;
    background-color: $bg-color-grey;

    .wrapper {
      width: 100%;
      height: 100%;

      .menu {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 30rpx 20rpx;
        font-size: 26rpx;
        color: $text-color-assist;
        position: relative;

        &:nth-last-child(1) {
          margin-bottom: 130rpx;
        }

        &.current {
          background-color: #ffffff;
          color: $color-default;
          font-weight: bold;
        }

        .dot {
          position: absolute;
          width: 34rpx;
          height: 34rpx;
          line-height: 34rpx;
          font-size: 22rpx;
          background-color: $color-default;
          color: #ffffff;
          top: 16rpx;
          right: 10rpx;
          border-radius: 100%;
          text-align: center;
        }
      }
    }
  }

  .goods {
    flex: 1;
    height: 100%;
    overflow: hidden;
    background-color: #ffffff;

    .wrapper {
      width: 100%;
      height: 100%;
      padding: 20rpx;

      .ads {
        height: calc(300 / 550 * 510rpx);

        image {
          width: 100%;
          height: 100%;
          border-radius: 8rpx;
        }
      }

      .list {
        width: 100%;
        font-size: $font-size-base;
        padding-bottom: 130rpx;

        .category {
          width: 100%;
          border-bottom-style: inset;

          .title {
            padding: 30rpx 0;
            display: flex;
            align-items: center;
            color: $text-color-base;

            .icon {
              width: 38rpx;
              height: 38rpx;
              margin-left: 10rpx;
            }
          }
        }

        .items {
          display: flex;
          flex-direction: column;
          padding-bottom: -30rpx;

          .good {
            display: flex;
            align-items: center;
            margin-bottom: 30rpx;

            .image {
              width: 160rpx;
              height: 160rpx;
              margin-right: 20rpx;
              border-radius: 8rpx;
            }

            .right {
              flex: 1;
              height: 160rpx;
              overflow: hidden;
              display: flex;
              flex-direction: column;
              align-items: flex-start;
              justify-content: space-between;
              padding-right: 34rpx;

              .name {
                font-size: $font-size-base;
                margin-bottom: 10rpx;
              }

              .tips {
                width: 100%;
                height: 40rpx;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                font-size: $font-size-sm;
                color: $text-color-assist;
              }

              .price_and_action {
                width: 100%;
                display: flex;
                justify-content: space-between;
                align-items: center;

                .price {
                  font-size: $font-size-base;
                  color: $color-default;
                  font-weight: 600;
                }

                .btn-group {
                  display: flex;
                  justify-content: space-between;
                  align-items: center;
                  position: relative;

                  .btn {
                    padding: 0 20rpx;
                    box-sizing: border-box;
                    font-size: $font-size-sm;
                    height: 38rpx;
                    line-height: 38rpx;

                    &.property_btn {
                      border-radius: 24rpx;
                    }

                    &.add_btn,
                    &.reduce_btn {
                      padding: 0;
                      width: 38rpx;
                      border-radius: 50%;
                    }
                  }

                  .dot {
                    position: absolute;
                    background-color: #ffffff;
                    border: 1px solid $color-default;
                    color: $color-default;
                    font-size: $font-size-sm;
                    width: 36rpx;
                    height: 36rpx;
                    line-height: 36rpx;
                    text-align: center;
                    border-radius: 100%;
                    right: -12rpx;
                    top: -10rpx;
                  }

                  .number {
                    width: 44rpx;
                    height: 44rpx;
                    line-height: 44rpx;
                    text-align: center;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

.modal-box {
  max-height: 90vh;
}

.good-detail-modal {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;

  .cover {
    height: 320rpx;
    padding: 30rpx 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;

    .image {
      width: 260rpx;
      height: 260rpx;
    }

    .btn-group {
      position: absolute;
      right: 10rpx;
      top: 30rpx;
      display: flex;
      align-items: center;
      justify-content: space-around;

      image {
        width: 80rpx;
        height: 80rpx;
      }
    }
  }

  .detail {
    width: 100%;
    min-height: 1vh;
    max-height: calc(90vh - 320rpx - 80rpx - 120rpx);

    .wrapper {
      width: 100%;
      height: 100%;
      overflow: hidden;

      .basic {
        padding: 0 20rpx 30rpx;
        display: flex;
        flex-direction: column;
        .name {
          font-size: $font-size-base;
          color: $text-color-base;
          margin-bottom: 10rpx;
        }
        .tips {
          font-size: $font-size-sm;
          color: $text-color-grey;
        }
      }

      .properties {
        width: 100%;
        border-top: 2rpx solid $bg-color-grey;
        padding: 10rpx 30rpx 0;
        display: flex;
        flex-direction: column;

        .property {
          width: 100%;
          display: flex;
          flex-direction: column;
          margin-bottom: 30rpx;
          padding-bottom: -16rpx;

          .title {
            width: 100%;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            margin-bottom: 20rpx;

            .name {
              font-size: 26rpx;
              color: $text-color-base;
              margin-right: 20rpx;
            }

            .desc {
              flex: 1;
              font-size: $font-size-sm;
              color: $color-default;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
            }
          }

          .values {
            width: 100%;
            display: flex;
            flex-wrap: wrap;

            .value {
              border-radius: 8rpx;
              background-color: $bg-color-grey;
              padding: 16rpx 30rpx;
              font-size: 26rpx;
              color: $text-color-assist;
              margin-right: 16rpx;
              margin-bottom: 16rpx;

              &.default {
                background-color: $color-default;
                color: $text-color-white;
              }
            }
          }
        }
      }
    }
  }

  .action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: $bg-color-grey;
    height: 120rpx;
    padding: 0 26rpx;

    .left {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      margin-right: 20rpx;
      overflow: hidden;

      .price {
        font-size: $font-size-lg;
        color: $text-color-base;
      }

      .props {
        color: $text-color-assist;
        font-size: 24rpx;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
    .btn-group {
      display: flex;
      align-items: center;
      justify-content: space-around;

      .number {
        font-size: $font-size-base;
        width: 44rpx;
        height: 44rpx;
        line-height: 44rpx;
        text-align: center;
      }

      .btn {
        padding: 0;
        font-size: $font-size-base;
        width: 44rpx;
        height: 44rpx;
        line-height: 44rpx;
        border-radius: 100%;
      }
    }
  }

  .add-to-cart-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: $color-default;
    color: $text-color-white;
    font-size: $font-size-base;
    height: 80rpx;
    border-radius: 0 0 12rpx 12rpx;
  }
}

.cart-box {
  position: fixed;
  bottom: 30rpx;
  left: 30rpx;
  right: 30rpx;
  height: 96rpx;
  border-radius: 48rpx;
  box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.2);
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;

  .cart-img {
    width: 96rpx;
    height: 96rpx;
    position: relative;
    margin-top: -48rpx;
  }

  .pay-btn {
    height: 100%;
    padding: 0 30rpx;
    color: #FFFFFF;
    border-radius: 0 50rpx 50rpx 0;
    display: flex;
    align-items: center;
    font-size: $font-size-base;
  }

  .mark {
    padding-left: 46rpx;
    margin-right: 30rpx;
    position: relative;

    .tag {
      background-color: $color-default;
      color: $text-color-white;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: $font-size-sm;
      position: absolute;
      right: -10rpx;
      top: -50rpx;
      border-radius: 100%;
      padding: 4rpx;
      width: 40rpx;
      height: 40rpx;
      opacity: .9;
    }
  }

  .price {
    flex: 1;
    color: $text-color-base;
  }
}

.cart-popup {
  .top {
    background-color: $bg-color-primary;
    color: $color-default;
    padding: 10rpx 30rpx;
    font-size: 24rpx;
    text-align: right;
  }
  .cart-list {
    background-color: #FFFFFF;
    width: 100%;
    overflow: hidden;
    min-height: 1vh;
    max-height: 60vh;

    .wrapper {
      height: 100%;
      display: flex;
      flex-direction: column;
      padding: 0 30rpx;
      margin-bottom: 156rpx;

      .item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 30rpx 0;
        position: relative;

        &::after {
          content: ' ';
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          background-color: $border-color;
          height: 2rpx;
          transform: scaleY(.6);
        }

        .left {
          flex: 1;
          display: flex;
          flex-direction: column;
          overflow: hidden;
          margin-right: 30rpx;

          .name {
            font-size: $font-size-sm;
            color: $text-color-base;
          }
          .props {
            color: $text-color-assist;
            font-size: 24rpx;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
        }

        .center {
          margin-right: 120rpx;
          font-size: $font-size-base;
        }

        .right {
          display: flex;
          align-items: center;
          justify-content: space-between;

          .btn {
            width: 46rpx;
            height: 46rpx;
            border-radius: 100%;
            padding: 0;
            text-align: center;
            line-height: 46rpx;
          }

          .number {
            font-size: $font-size-base;
            width: 46rpx;
            height: 46rpx;
            text-align: center;
            line-height: 46rpx;
          }
        }
      }
    }
  }
}

</style>
